package com.dao.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

import com.dao.BaseDao;
import com.dao.MedicineDao;
import com.entity.Medicine;
import com.entity.ZhengZhuang;

public class MedicineDaoImpl extends BaseDao implements MedicineDao {
	private Connection con = null;
	private PreparedStatement ps = null;
	private ResultSet rs = null;
	@Override
	public Medicine searchM(String searchZZType, String searchZZValue) {
		// TODO Auto-generated method stub
		String sql=null;
		if(searchZZType.equals("1")){
			sql="";
		}
		if(searchZZType.equals("2")){
			Integer id=new Integer(searchZZValue);
			sql="";
		}
		if(searchZZType.equals("3")){
			sql="";
		}
		try{
			con=this.getConn();
			ps = con.prepareStatement(sql);
			rs=ps.executeQuery();
			while(rs.next()){
				
			}
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			this.closeAll(con, ps, rs);
		}
		return null;
	}

}
